home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
CBREAK.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
2KB
|
48 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef cbreak
#ifndef NDEBUG
char *rcsid_cbreak = "$Header: c:/curses/portable/RCS/cbreak.c%v 2.0 1992/11/15 03:28:47 MH Rel $";
#endif
/*man-start*********************************************************************
cbreak() - set/clear cbreak mode
X/Open Description: cbreak() and nocbreak()
These two routines put the terminal into and out of cbreak mode.
In cbreak mode, characters typed by the user are immediately
available to the program and erase/kill character processing is
not performed. When out of cbreak mode, the terminal driver
will buffer characters typed until a newline or carriage return
is typed. Interrupt and flow control characters are unaffected
by this mode. Initially the terminal may or may not need be
in cbreak mode.
PDCurses Description:
There is no additional PDCurses functionality.
X/Open Return Value:
The cbreak() function returns OK on success and ERR on error.
PDCurses Errors:
No errors are defined for these functions.
Portability:
PDCurses int cbreak( void );
X/Open Dec '88 int cbreak( void );
BSD Curses int cbreak( void );
SYS V Curses int cbreak( void );
**man-end**********************************************************************/
int cbreak(void)
{
_cursvar.cbreak = TRUE;
return( OK );
}